Problem Note 33593: Parameter values might not resolve as expected in SAS® Enterprise Guide
Macro variables created with the Parameter Manager might not resolve as expected when used with the %LET to create a new macro variable in a code node. The Parameter Manager uses the %NRSTR macro quoting function by default when creating parameters with a type of String. This function masks special characters in the string and wraps the value with delta characters. These delta characters cause what appears to be a space when creating a new macro variable using the %LET in a code node, so the new variable does not resolve properly.
For example, we create the macro variables TABLE and SUFFIX in the Parameter Manager. When we create a new macro variable in the code node that is a concatenation of the results of these macro values (OUTTABLE) and resolve it on the DATA statement, it creates two output datasets: MYTABLE_ and TMP. The expected result is one output dataset called MYTABLE_TMP.
%LET outputtable = &table._&suffix;
data &outputtable;
set sashelp.class;
run;
|
A workaround is to use the %UNQUOTE macro function when resolving the macro variable:
%LET outputtable = &table._&suffix;
data %UNQUOTE(&outputtable);
set sashelp.class;
run;
|
Operating System and Release Information
SAS System | SAS Enterprise Guide | Microsoft® Windows® for x64 | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows 2000 Advanced Server | 4.1 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 4.1 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 4.1 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 4.1 | | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 4.1 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Windows Vista | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Macro
|
Date Modified: | 2008-10-14 10:32:28 |
Date Created: | 2008-10-13 14:31:33 |